<?php
 $active=request()->controller().'/'.request()->action();
?>
<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="nav-close"><i class="fa fa-times-circle"></i>
    </div>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span><img alt="image" class="img-circle" src="__STATIC__/admin/img/profile_small.jpg" /></span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <span class="clear">
                       <span class="block m-t-xs"><strong class="font-bold">{$info.account}</strong></span>
                        <span class="text-muted text-xs block">{$info.account}<b class="caret"></b></span>
                        </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a href="{:url('Login/login_out')}">安全退出</a>
                        </li>
                    </ul>
                </div>
                <div class="logo-element">H+
                </div>
            </li>
            <li>
                <a class="J_menuItem" href="{:url('Index/indexa')}" data-index="0"><i class="fa fa-columns"></i> <span class="nav-label">起始页</span></a>
            </li>
            <if condition="$group_power eq 'all' || in_array('member',$group_power)">
            <li>
                <a href="#">
                    <i class="fa fa fa-bar-chart-o"></i>
                    <span class="nav-label">会员管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <if condition="$group_power eq 'all' || in_array('member',$group_power)">
                        <li>
                            <a class="J_menuItem" href="{:url('Member/index')}"  <eq name="active" value="Member/index">class="active"</eq>>会员列表</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="{:url('Member/buyer')}"  <eq name="active" value="Member/buyer">class="active"</eq>>买手列表</a>
                        </li>
                    </if>
                </ul>
            </li>
            </if>
            <if condition="$group_power eq 'all' || in_array('member',$group_power)">
                <li>
                    <a href="#">
                        <i class="fa fa fa-bar-chart-o"></i>
                        <span class="nav-label">推荐栏管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <if condition="$group_power eq 'all' || in_array('member',$group_power)">
                            <li>
                                <a class="J_menuItem" href="{:url('Circle/index')}"  <eq name="active" value="Circle/index">class="active"</eq>>买手发布推荐</a>
                            </li>
                        </if>
                    </ul>
                </li>
            </if>
            <if condition="$group_power eq 'all' || in_array('order',$group_power)">
            <li>
                <a href="#">
                    <i class="fa fa fa-bar-chart-o"></i>
                    <span class="nav-label">订单管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <if condition="$group_power eq 'all' || in_array('order',$group_power)">
                        <li>
                            <a class="J_menuItem" href="{:url('Order/index')}"  <eq name="active" value="Order/index">class="active"</eq>>订单列表</a>
                        </li>
                    </if>
                    <if condition="$group_power eq 'all' || in_array('order',$group_power)">
                        <li>
                            <a class="J_menuItem" href="{:url('Order/refundList')}"  <eq name="active" value="Order/index">class="active"</eq>>退货列表</a>
                        </li>
                    </if>
                </ul>
            </li>
            </if>
                <li>
                    <a href="#">
                        <i class="fa fa fa-bar-chart-o"></i>
                        <span class="nav-label">财务管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <if condition="$group_power eq 'all' || in_array('withdraw',$group_power)">
                            <li>
                                <a class="J_menuItem" href="{:url('Withdraw/index')}"  <eq name="active" value="Withdraw/list">class="active"</eq>>提现审核列表</a>
                            </li>
                        </if>
                        <if condition="$group_power eq 'all' || in_array('Platform',$group_power)">
                            <li>
                                <a class="J_menuItem" href="{:url('Platform/index')}"  <eq name="active" value="Platform/index">class="active"</eq>>金额流水记录</a>
                            </li>
                        </if>
                    </ul>
                </li>
            <li>
                <a href="#">
                    <i class="fa fa fa-bar-chart-o"></i>
                    <span class="nav-label">系统管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <if condition="$group_power eq 'all' || in_array('set',$group_power)">
                    <li>
                        <a class="J_menuItem" href="{:url('Set/index')}"  <eq name="active" value="Set/index">class="active"</eq>>系统设置</a>
                    </li>
                    </if>
                    <if condition="$group_power eq 'all' || in_array('set',$group_power)">
                        <li>
                            <a class="J_menuItem" href="{:url('Set/agreement')}"  <eq name="active" value="Set/agreement">class="active"</eq>>协议设置</a>
                        </li>
                    </if>
                    <if condition="$group_power eq 'all' || in_array('set',$group_power)">
                        <li>
                            <a class="J_menuItem" href="{:url('Set/protocol')}"  <eq name="active" value="Set/protocol">class="active"</eq>>购物协议</a>
                        </li>
                    </if>
                </ul>
            </li>
            <if condition="$group_power eq 'all' || in_array('banner',$group_power)">
                <li>
                    <a href="#">
                        <i class="fa fa fa-bar-chart-o"></i>
                        <span class="nav-label">轮播管理</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <if condition="$group_power eq 'all' || in_array('banner',$group_power)">
                            <li>
                                <a class="J_menuItem" href="{:url('banner/li')}"  <eq name="active" value="Admin/li">class="active"</eq>>轮播列表</a>
                            </li>
                        </if>
                    </ul>
                </li>
            </if>
            <if condition="$group_power eq 'all' || in_array('admin',$group_power)">
            <li>
                <a href="#">
                    <i class="fa fa fa-bar-chart-o"></i>
                    <span class="nav-label">权限管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <if condition="$group_power eq 'all' || in_array('admin',$group_power)">
                        <li>
                            <a class="J_menuItem" href="{:url('Admin/li')}"  <eq name="active" value="Admin/li">class="active"</eq>>管理员</a>
                        </li>
                        <!--
                        <li>
                            <a class="J_menuItem" href="{:url('Admin/role')}"  <eq name="active" value="Admin/role">class="active"</eq>>角色管理</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="{:url('Admin/right_list')}"  <eq name="active" value="Admin/right_list">class="active"</eq>>权限列表</a>
                        </li>
                        -->
                    </if>
                </ul>
            </li> 
            </if>
        </ul>
    </div>
</nav>